package com.hulk.ratel.persistence.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 实体父类
 * @author hulk
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SuperEntity<T extends Model> extends Model<T> {


    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;



    @TableField("tenant_id")
    private String tenantId;

    @TableField("lock_version")
    private Long lockVersion;


    @TableField("updated_time")
    private LocalDateTime updatedTime;


}
